﻿using NoMiddleman.Core.DataInterfaces;
using NoMiddleman.Core.Domain;

namespace NoMiddleman.Data
{
    public class ClientRepository : BaseRepository<Client>, IClientRepository
    {
        public new Client Save(Client entity)
        {
            BaseRepository<Address> addressRepo = new BaseRepository<Address>();
            entity.Address = addressRepo.Save(entity.Address);
            return base.Save(entity);
        }
    }
}
